package top.lishuoboy.hibernate.validator.a3_1_4;

import org.hibernate.validator.constraints.ParameterScriptAssert;

import java.util.List;

public class Car {

    /**
     * @param passengers 乘客
     * @param luggage    行李
     */
    @ParameterScriptAssert(lang = "groovy", script = "luggage.size() <= passengers.size() * 2")
    public void load(List<String> passengers, List<String> luggage) {
    }
}